package org.niugang.security.users.pojo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author Created by niugang on 2019/5/29/15:14
 */
@Data
@ToString
@EqualsAndHashCode
public class RoleDO implements GrantedAuthority {


    private String id;

    private String nicename;

    private String description;

    private String chineseName;

    private String deleteFlag;

    @Override
    public String getAuthority() {
        return nicename;
    }
}
